<?php
	// Custom Wordpress Breadcrumbs Addon
	// Matt B - Feb 2013
	// Changes Are Not Recommended

if ((is_page() && !is_front_page()) || is_home() || is_category() || is_single()) {
   echo '<ul id="breadcrumbs">';
   echo '<li class="front_page"><a href="'.get_bloginfo('url').'">Home</a></li>';
   $post_ancestors = get_post_ancestors($post);
   if ($post_ancestors) {
      $post_ancestors = array_reverse($post_ancestors);
      foreach ($post_ancestors as $crumb)
          echo '<li>></li><li><a href="'.get_permalink($crumb).'">'.get_the_title($crumb).'</a></li>';
   }
   if (is_category() || is_single()) {
      $category = get_the_category();
      echo '<li><a href="'.get_category_link($category[0]->cat_ID).'">'.$category[0]->cat_name.'</a></li>';
	  echo '<li>></li>';
   }
   if (!is_category())
      echo '<li>></li><li class="current" style="font-weight:bold;">'.get_the_title().'</li>';
   echo '</ul>';
}
?>